package com.finance.report.dao;

import com.finance.report.bean.pojo.LogisticsData;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;

@Component
public interface LogisticsDataMapper {
	int add(@Param("tableName")String tableName,@Param("logisticsData")LogisticsData logisticsData);

	/**
	 * 删除某月所有数据
	 *@param tableName  例如:表名 biz_logistics_1705
	 * */
	int deleteByTableName(@Param("tableName") String tableName);

	int update(@Param("tableName")String tableName,@Param("logisticsData")LogisticsData logisticsData);

    LogisticsData getByWaybillNum(@Param("tableName") String tableName, @Param("waybillNum") String waybillNum);

    List<LogisticsData> addressNameAcceptdayPostman(@Param("addressConsignee") String addressConsignee, @Param("nameConsignee") String nameConsignee,@Param("postmanNo") String postmanNo, @Param("acceptTime") Date acceptTime, @Param("tableName") String tableName);

	List<LogisticsData> addressNameSignday3Meta(@Param("addressConsignee") String addressConsignee,@Param("nameConsignee") String nameConsignee,@Param("signDay") Date signDay,  @Param("tableName")String tableName);

	List<LogisticsData> getByBusinessCode(@Param("businessCode")String businessCode, @Param("tableName")String tableName);

	List<LogisticsData> waybillNumSuffix(@Param("waybillNum")String waybillNum, @Param("tableName")String tableName);
}